﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage/Principal.Master" CodeBehind="ClienteCAD.aspx.vb" Inherits="E_Lixo.ClienteCAD" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 340px;
        }
        .style2
        {
            width: 290px;
        }
        .style3
        {
            width: 340px;
            height: 18px;
        }
        .style4
        {
            width: 290px;
            height: 18px;
        }
        .style5
        {
            height: 18px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <asp:Panel ID="Panel" runat="server" Width="90%" CssClass="stiloPanel">
            <asp:Label ID="LCodigo" runat="server" Text="Código"></asp:Label>
            <br />
            <asp:TextBox ID="TCodigo" runat="server" Width="71px" Enabled="False"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="LNome" runat="server" 
                Text="Nome &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
            <br />
            <asp:TextBox ID="TXTNome" runat="server" MaxLength="60" Width="430px"></asp:TextBox>
            <br />
            <br />
            <table style="width:100%;">
                <tr>
                    <td class="style1">
                        <asp:Label ID="LBEndereco" runat="server" 
                            Text="Endereço &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
                    </td>
                    <td class="style2">
                        <asp:Label ID="LBCep" runat="server" 
                            Text="Cep &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
                        <asp:Label ID="Label1" runat="server" Enabled="False" ForeColor="#CCCCCC" 
                            Text="   Ex: 00000-000"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="LBUf" runat="server" 
                            Text="UF &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:TextBox ID="TXTEndereco" runat="server" Width="326px" MaxLength="60"></asp:TextBox>
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="TXTCep" runat="server" Width="118px" MaxLength="9"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="revCEP" runat="server" 
                            ControlToValidate="TXTCep" ErrorMessage="CEP Inválido." ForeColor="Red" 
                            ValidationExpression="\d{5}(-\d{3})?"></asp:RegularExpressionValidator>
                    </td>
                    <td>
                        <asp:DropDownList ID="DDLUf" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;</td>
                    <td class="style2">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="LBBairro" runat="server" 
                            Text="Bairro &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
                    </td>
                    <td class="style2">
                        <asp:Label ID="LBCidade" runat="server" 
                            Text="Cidade &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:TextBox ID="TXTBairro" runat="server" Width="326px" MaxLength="55"></asp:TextBox>
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="TXTCidade" runat="server" Width="272px" MaxLength="55"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;</td>
                    <td class="style2">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="LBTelefone" runat="server" Text="Telefone" Width="57px"></asp:Label>
                        <asp:Label ID="Label3" runat="server" ForeColor="#CCCCCC" 
                            Text="Ex: (00)0000-0000"></asp:Label>
                    </td>
                    <td class="style2">
                        <asp:Label ID="LBCelular" runat="server" Text="Celular" Height="16px" 
                            Width="46px"></asp:Label>
                        <asp:Label ID="Label4" runat="server" ForeColor="#CCCCCC" 
                            Text="Ex: (00)0000-0000"></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:TextBox ID="TXTTelefone" runat="server" MaxLength="13"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="REVTelefone" runat="server" 
                            ControlToValidate="TXTTelefone" ErrorMessage="Telefone inválido." 
                            ForeColor="Red" ValidationExpression="^\(\d{2}\)\d{4}-\d{4}$"></asp:RegularExpressionValidator>
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="TXTCelular" runat="server" MaxLength="13"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;</td>
                    <td class="style2">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="LBEmail" runat="server" Text="Email"></asp:Label>
                    </td>
                    <td class="style2">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3">
                        <asp:TextBox ID="TXTEmail" runat="server" Width="330px" MaxLength="60"></asp:TextBox>
                    </td>
                    <td class="style4">
                        <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="Email inválido." ForeColor="Red" 
                            SetFocusOnError="True" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                    <td class="style5">
                    </td>
                </tr>
            </table>
            <br />
            <br />
            <div align="center">
                <asp:Label ID="LMSG" runat="server" Text="Erro" Visible="False"></asp:Label>
                <br />
                <asp:Button ID="BGravar" runat="server" Text="Gravar" />
            </div>
        </asp:Panel>
    </div>

    
</asp:Content>
